class orderEdgePoints{
    /**
     * 暂时没有到
     */
    constructor() {}
    static getInstance(){
        if(!orderEdgePoints.instance) {
            orderEdgePoints.instance = new orderEdgePoints();
        }
        return orderEdgePoints.instance;
    }

    order(data) {
       let edgePoints = qhPlotConvexHull(data);
       let ret =[];
       for(let i=0; i<edgePoints.length;i++ ) {
           for(let z =0;z<data.length;z++ ) {
               if(data[z].lat == edgePoints[i][1] && data[z].lng == edgePoints[i][0]) {
                      ret.push(data[z])
               }
           }
       }
       return ret;
    }

}